package com.fzj.example.proxy.statics;

/**
 * ClassName: DSA
 * date: 2019/10/23 11:46
 * Description: 代理类
 * @author fanzj@bonree.com
 * @since JDK 1.8
 */
public class DSA implements SA {

    private SA sa;

    @Override
    public String  getUserName() {
        return sa.getUserName();
    }

    public DSA(SA sa){
        this.sa=sa;
    }

    public static void main(String[] args) {
        DSA dsa=new DSA(new CSA());
        System.out.println(dsa.getUserName());
    }
}
